<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> 
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>角色列表</title>
<link href="${ctx }/css/style.css" rel="stylesheet" type="text/css" />
<link href="${ctx }/css/ajax_tip.css" rel="stylesheet" type="text/css" />
<link href="${ctx }/js/layui/css/layui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/js/jquery/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="${ctx }/js/layer/layer.js"></script>
<script type="text/javascript" src="${ctx }/js/layui/layui.js"></script>
<script type="text/javascript" src="${ctx }/js/common.js"></script>
</head>
<body>
<div class="listNavTitle">
    <p>
        <label>系统管理 ></label>
        <label>角色管理</label>
    </p>
</div>
<div class="rightinfo">
    <div class="formtitle">
        <span>角色列表</span>
        <shiro:hasPermission name="sysman:SYSTEM_ROLE_MAN:add">
        <div class="listBtnDiv">
            <button class="layui-btn layui-btn-normal" type="button" id="add">新增角色</button>
        </div>
        </shiro:hasPermission>
    </div>
  <form id="searchForm">
      <input type="hidden" name="roleModuleType" value="${roleModuleType}"/>
	  <ul class="search_forminfo">
	    <li>
	      <label>角色名称</label>
	      <input name="roleName" type="text" class="search_dfinput" />
	    </li>
	    <li >
	      <label>&nbsp;</label>
          <button class="layui-btn layui-btn-normal" type="button" onclick="searchQuery('1');">查询</button>
	    </li>
	  </ul>
  </form>
  <div id="pageList">
  	
  </div>
</div>
</body>
</html>
<script type="text/javascript">
$(document).ready(function(){

	initUrl('${ctx}/sysman/systemRole/systemRoleAjaxList.do','${ctx}/sysman/systemRole/toSystemRoleAdd.do','${ctx}/sysman/systemRole/toChangeView.do','${ctx}/sysman/systemRole/delSystemRole.do');

    baseSearchQueryLayer(1,20);
	
	$("#add").click(function(){
  		toBaseAdd(false,933,530,true);
	});
});
</script>